# coding=utf-8
from Tkinter import *

root = Tk()
#演示 compound 的使用方法
#图像与文本在 Label 中的位置
#图像居下
Label(root, text = 'botton', compound = 'bottom', bitmap = 'error' ).pack()
#图像居上
Label(root, text = 'top', compound = 'top', bitmap = 'error' ).pack()
#图像居右
Label(root, text = 'right', compound = 'right', bitmap = 'error' ).pack()
#图像居左
Label(root, text = 'left', compound = 'left', bitmap = 'error' ).pack()
#文字覆盖在图像上
Label(root, text = 'center', compound = 'center', bitmap = 'error' ).pack()

#消息循环
root.mainloop()